import http from './../interface.js'

// 医生端基础接口
// GET 医生职称列表 /api/doctors.base/position
export const position = (data) => {
	return http.request({
		url: '/doctors.base/position',
		method: 'GET',
		data,
	})
}

// GET 医生擅长项目 /api/doctors.base/collections
export const collections = (data) => {
	return http.request({
		url: '/doctors.base/collections',
		method: 'GET',
		data,
	})
}

// GET 医生端引导页 /api/doctors.base/doctors
export const doctors = (data) => {
	return http.request({
		url: '/doctors.base/doctors',
		method: 'GET',
		data,
	})
}
// GET 档案分组列表 /api/doctors.record/group
export const group = (data) => {
	return http.request({
		url: '/doctors.record/group',
		method: 'POST',
		data,
	})
}

// GET 用户名搜索 /api/doctors.record/searchuser
export const searchuser = (data) => {
	return http.request({
		url: '/doctors.record/searchuser',
		method: 'POST',
		data,
	})
}

// POST 添加分组 /api/doctors.record/addgroup
export const addgroup = (data) => {
	return http.request({
		url: '/doctors.record/addgroup',
		method: 'POST',
		data,
	})
}

// GET 用户列表 /api/doctors.record/userlist
export const userlist = (data) => {
	return http.request({
		url: '/doctors.record/userlist',
		method: 'GET',
		data,
	})
}

// GET 删除分组 /api/doctors.record/delgroup
export const delgroup = (data) => {
	return http.request({
		url: '/doctors.record/delgroup',
		method: 'GET',
		data,
	})
}

// GET 用户项目管理列表 /api/doctors.record/orders
export const orders = (data) => {
	return http.request({
		url: '/doctors.record/orders',
		method: 'GET',
		data,
	})
}


// POST 分组排序 /api/doctors.record/groupsort
export const groupsort = (data) => {
	return http.request({
		url: '/doctors.record/groupsort',
		method: 'POST',
		data,
	})
}
// GET 档案详情 /api/doctors.record/orderdetail
export const orderdetail = (data) => {
	return http.request({
		url: '/doctors.record/orderdetail',
		method: 'GET',
		data,
	})
}


// GET 医院列表接口 /api/doctors.base/hospitallist
export const hospitallist = (data) => {
	return http.request({
		url: '/doctors.base/hospitallist',
		method: 'GET',
		data,
	})
}
// GET 医院详情 /api/doctors.base/hospitaldetail
export const hospitaldetail = (data) => {
	return http.request({
		url: '/doctors.base/hospitaldetail',
		method: 'GET',
		data,
	})
}

// GET 文档列表 /api/doctors.manual/listcontent
export const listcontent = (data) => {
	return http.request({
		url: '/doctors.manual/listcontent',
		method: 'GET',
		data,
	})
}

export default {
	position,
	collections,
	doctors,
	group,
	searchuser,
	addgroup,
	userlist,
	delgroup,
	groupsort,
	orders,
	orderdetail,		// 档案详情
	hospitallist,
	hospitaldetail, // GET 医院详情 /api/doctors.base/hospitaldetail
	listcontent // GET 文档列表 /api/doctors.manual/listcontent
}
